<?php
/**
 * 用户控制器
 * Created by  你老板
 * User: 你老板
 * Date: 2018/11/10
 * Time: 下午 5:10
 */
namespace app\home\controller;
use think\Controller;
use think\Request;
use \think\Db;
use app\admin\lib\Tree;
use app\admin\lib\Detail;
class Monthlyhot extends Controller{
	public function _initialize() {
	}
	//首页推荐车辆
 public function monthlyhot(){
  $data =['rec'=>1];
	$index = controller('Index');
	$result =$index->all_select($data,0,100);
   echo json_encode($result);
 }
	//首页最高直降
 public function highest(){
  $data =['direct'=>1];
	$index = controller('Index');
	$result =$index->all_select($data,0,100);
   echo json_encode($result);
 }
	//首页-超低月供
 public function supply(){
  $data =['direct'=>1];
	$index = controller('Index');
	$result =$index->all_select($data,0,100);
   echo json_encode($result);
 }
	//首页-超低首付
 public function payment(){
  $data =['direct'=>1];
	$index = controller('Index');
	$result =$index->all_select($data,0,100);
   echo json_encode($result);
 }

 //首页查询品牌
public function home_class(){
	$db = Db::name('product_class');
	$list = $db->where(['uid'=>0])->limit(8)->select();
	echo json_encode($list);
	// dump($list);
}

}
